// 通过 path 模块拼接两个路径，并打印结果
const path = require("path");
const path1 = "/home/user";
const path2 = "documents/file.txt";

// 拼接路径
const joinPath = path.join(path1, path2);

// 打印结果
console.log(joinPath);
